#version 300 es
layout (location = 0) in vec4 vPosition;
layout (location = 1) in vec4 aColor;
//顶点着色器的颜色输出的属性名 要跟片段着色器的颜色输入属性名一样 否则显示不出图像
out vec4 vColor;
void main() {
    gl_Position  = vPosition;
    gl_PointSize = 10.0;
    vColor = aColor;
}